package cn.china.service2.service;


import entity.Student;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Service
public class StudentService {

    @RequestMapping(value = "/showInfo",produces = "application/json;charset=utf-8")
   public Student showInfo(){
        return new Student("tom2","女","10班","456");
    }


}
